home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 26 (Anniversary Edition)
/
Volume 26 [Anniversary Edition] - JOGO DISK .iso
/
DEPOSITO
/
REmovido
/
Esportes
/
FunSurfing.swf
/
scripts
/
DefineSprite_129
/
frame_1
/
DoAction.as
Wrap
Text File
|
2006-06-13
|
2KB
|
56 lines
ox1 = getProperty("../surfman", _X) - "25";
ox2 = getProperty("../surfman", _X) + "25";
oy1 = getProperty("../surfman", _Y) - "25";
oy2 = getProperty("../surfman", _Y) + "20";
if(ox1 < getProperty("../bird-1", _X) and getProperty("../bird-1", _X) < ox2 and oy1 < getProperty("../bird-1", _Y) and getProperty("../bird-1", _Y) < oy2)
{
setProperty("../bird-1", _X, "550");
gotoAndStop(10);
}
if(ox1 < getProperty("../bird-2", _X) and getProperty("../bird-2", _X) < ox2 and oy1 < getProperty("../bird-2", _Y) and getProperty("../bird-2", _Y) < oy2)
{
setProperty("../bird-2", _X, "550");
gotoAndStop(10);
}
if(ox1 < getProperty("../wood-1", _X) and getProperty("../wood-1", _X) < ox2 and oy1 < getProperty("../wood-1", _Y) and getProperty("../wood-1", _Y) < oy2)
{
setProperty("../wood-1", _X, "550");
gotoAndStop(10);
}
if(ox1 < getProperty("../wood-2", _X) and getProperty("../wood-2", _X) < ox2 and oy1 < getProperty("../wood-2", _Y) and getProperty("../wood-2", _Y) < oy2)
{
setProperty("../wood-2", _X, "550");
gotoAndStop(10);
}
if(getProperty("../shark-1", _X) < ox2 and ox1 < getProperty("../shark-1", _X) and oy1 < getProperty("../shark-1", _Y) and getProperty("../shark-1", _Y) < oy2)
{
setProperty("../shark-1", _X, "550");
gotoAndStop(10);
}
if(getProperty("../shark-2", _X) < ox2 and ox1 < getProperty("../shark-2", _X) and oy1 < getProperty("../shark-2", _Y) and getProperty("../shark-2", _Y) < oy2)
{
setProperty("../shark-2", _X, "550");
gotoAndStop(10);
}
if(ox1 < getProperty("../surfer", _X) and getProperty("../surfer", _X) < ox2 and oy1 < getProperty("../surfer", _Y) and getProperty("../surfer", _Y) < oy2)
{
setProperty("../surfer", _X, "550");
gotoAndStop(10);
}
if(ox1 < getProperty("../bottle-1", _X) and getProperty("../bottle-1", _X) < ox2 and oy1 < getProperty("../bottle-1", _Y) + "10" and getProperty("../bottle-1", _Y) + "10" < oy2)
{
setProperty("../bottle-1", _X, "550");
tellTarget("../score")
{
gotoAndPlay(2);
}
}
if(ox1 < getProperty("../bottle-2", _X) and getProperty("../bottle-2", _X) < ox2 and oy1 < getProperty("../bottle-2", _Y) and getProperty("../bottle-2", _Y) < oy2)
{
setProperty("../bottle-2", _X, "550");
tellTarget("../score")
{
gotoAndPlay(2);
}
}